package pres.man.interview.thread;

/**
 * @author Man
 * @date 2021-02-05-16:34
 */
public class ThreadLocalVal {

    public static void main(String[] args) {
        ThreadLocal<String> threadLocal = new ThreadLocal<>();
        threadLocal.set("man");
        new Thread(() -> {
            System.out.println(threadLocal.get());
        });
        System.out.println(threadLocal.get());
    }
}
